import 'package:ducafe_ui_core/ducafe_ui_core.dart';
import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:oktoast/oktoast.dart';
import 'package:get/get.dart';
import 'function/routes/app_route_manager.dart';

void main() {
  runApp(const MeshApp());
}

class MeshApp extends StatelessWidget {
  const MeshApp({super.key});

  @override
  Widget build(BuildContext context) {
    return ScreenUtilInit(
      minTextAdapt: true,
      splitScreenMode: true,
      designSize: const Size(375, 812),
      builder: (context, child) {
        return OKToast(
          child: GetMaterialApp(
            title: 'Mesh',
            debugShowCheckedModeBanner: false,
            theme: ThemeData(
              textButtonTheme: TextButtonThemeData(
                style: TextButton.styleFrom(
                  textStyle: TextStyle(decoration: TextDecoration.none),
                ),
              ),
              primarySwatch: Colors.yellow,
              splashColor: Colors.transparent,
              highlightColor: Colors.transparent,
              fontFamily: GoogleFonts.quicksand().fontFamily,
            ),
            initialRoute: '/app_launch',
            getPages: AppRouteManager.getAppRoutes(),
          ),
        );
      },
    );
  }
}
